/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.kedacom.demo.spring.event;

import org.springframework.context.ApplicationEvent;

/**
 *
 * @author xiaojinghai
 */
public class MyEvent extends ApplicationEvent {

    private String message;

    public void setMessage(String msg) {
        this.message = msg;
    }

    public String getMessage() {
        return this.message;
    }

    public MyEvent(Object source) {
        super(source);
    }

    public MyEvent(Object source, String msg) {
        super(source);
        this.setMessage(msg);
    }
}
